﻿using BaBaoFan.Modifier.Model;
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BaBaoFan.Modifier.Models
{
    public class AlgorithmInfoCreateOrUpdateViewModel
    {
        public IEnumerable<SelectListItem> AvaliableMillInfos { get; set; }
        public IEnumerable<SelectListItem> AvaliableAlgorithms { get; set; }
        public IEnumerable<SelectListItem> AvaliableAlgorithmUnits { get; set; }
        
        public int Id { get; set; }
        /// <summary>
        /// 算法
        /// </summary>
        public string AlgorithmId { get; set; }
        /// <summary>
        /// 矿机Id
        /// </summary>
        public int MillId { get; set; }
        /// <summary>
        /// 矿机算力
        /// </summary>
        public float HashRate { get; set; }
        /// <summary>
        /// 矿机单位
        /// </summary>
        public string MillUnit { get; set; }
        /// <summary>
        /// 矿机权重
        /// </summary>
        public int Weight { get; set; }
        /// <summary>
        /// 功率损耗
        /// </summary>
        public int PowerDissipation { get; set; }
    }
}
